<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        .image-container {
            background-image: url("img/Tesla\ \(12\).jpeg");
            background-size: cover;
            position: relative;
            height: 300px;
        }

        .text {
            background-color: white;
            color: black;
            font-weight: bold;
            margin: 0 auto;
            padding: 10px;
            width: 50%;
            text-align: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            mix-blend-mode: screen;
            font-size: 10vw;
        }
    </style>
</head>

<body>

    <h2>Responsive Cutout Text Effect</h2>
    <h1>镂空文本 (不支持 ie)</h1>
    <h1>镂空文本 (不支持 ie)</h1>

    <div class="image-container">
        <div class="text">NATURE</div>
    </div>

    <pre>
    <h2>
    父容器:
    .image-container {
        background-image: url("img/Tesla\ \(12\).jpeg");
        background-size: cover;
        position: relative;
        height: 300px;
    }

    子容器:
    mix-blend-mode: screen;
    font-size: 10vw;
    
    </h2>
    </pre>

    <p><strong>Note:</strong> This example does not work in Internet Explorer or Edge.</p>

</body>
</html>